//
//  DSZXQView.m
//  7.13苏宁框架
//
//  Created by app15 on 15/7/23.
//  Copyright (c) 2015年 lovena. All rights reserved.
//

#import "DSZXQView.h"

@implementation DSZXQView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(instancetype)initWithFrame:(CGRect)frame{
    self=[super initWithFrame:frame];
    if (self) {
        self=[[[NSBundle mainBundle]loadNibNamed:@"DSZXQView" owner:nil options:nil]lastObject];
    }
    return self;
}
- (IBAction)Join {
//    [[NSNotificationCenter defaultCenter]postNotificationName:@"join" object:nil];
    [self.joinBtn setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal];
    [self.showBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    _lineView.frame=CGRectMake(160, 40, 160, 3);
    //NSLog(@"%f",_lineView.frame.origin.x);
}

- (IBAction)show {
    //    [[NSNotificationCenter defaultCenter]postNotificationName:@"join" object:nil];
    [self.joinBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [self.showBtn setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal];
    _lineView.frame=CGRectMake(0, 40, 160, 3);
}
@end
